package com.zdlyh.service;

import com.zdlyh.domain.ResponseResult;
import com.zdlyh.domain.dto.CategoryDto;
import com.zdlyh.domain.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdlyh.domain.vo.PageVo;

public interface CategoryService extends IService<Category> {
    // 获取分类列表（前台）
    ResponseResult getCategoryList();

    ResponseResult<PageVo> getCategoryPage(Integer pageNum, Integer pageSize, CategoryDto categoryDto);

    ResponseResult addCategory(CategoryDto categoryDto);

    ResponseResult getCategoryById(Long id);

    ResponseResult updateCategory(CategoryDto categoryDto);

    ResponseResult deleteCategoryById(Long id);

    // 新增文章时需要查询所有分类
    ResponseResult getListAllCategory();
}
